package pert;



import java.util.ArrayList;
import java.util.List;

/**
 * @(#) Task.java
 */

public class Task
{
	private fileParser inputforCreate;
	
	private Task Nodes;
	
	private String taskId;
	
	private int duration;
	
	private List<String> dependents = new ArrayList<String>();
	
	private String color;
	
	private Boolean isCritical=false;
	private List<Task> nodes = new ArrayList<Task>();
	
	public Task( )
	{
		
	}
	
	public  void setId(String iD){
		this.taskId=iD;
		}
	
	public  void setCretical(Boolean iS){
		this.isCritical=iS;
		}
	
	
	public  void setColor(String cl){
		this.color=cl;
		}
	
	public  void setDuration(int du){
		this.duration=du;
	}
	
	public Boolean getCretical(){
		return isCritical;
	}
	
	public String getId(){
		return taskId;
	}
	
	public int getDuration(){
		return duration;
	}
	
	public List<String> getDep(){
		return dependents;
		
	}
	
	public String getColor(){
		return color;
	}
	
	public void addDependents(String id){
		this.dependents.add(id);
	}
	
	public void addNodes(Task node){
		this.nodes.add(node);
	}
	
	public List<Task> getNodes(){
		return nodes;
	}
	
	public void unnamed1( )
	{
		
	}
	
	
}
